package team.zero.lemon.module.message.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import team.zero.lemon.common.persistence.DataEntity;

public class Message extends DataEntity {

    private Integer id;
    private String title;
    private Integer userId;
    private String userName;
    private String receiveUserNames;
    private String copyUserNames;
    private Date sendTime;
    private String data;
    private Byte status;
    private List<MessageAction> messageActions;
    private  Integer receiverId;

    private  String receiverName;

    private  Integer messageActionId;

    public  String keywords;

    private  List<Integer> ids;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getReceiveUserNames() {
        return receiveUserNames;
    }

    public void setReceiveUserNames(String receiveUserNames) {
        this.receiveUserNames = receiveUserNames;
    }

    public String getCopyUserNames() {
        return copyUserNames;
    }

    public void setCopyUserNames(String copyUserNames) {
        this.copyUserNames = copyUserNames;
    }

    public Date getSendTime() {
        return sendTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public List<MessageAction> getMessageActions() {
        return messageActions;
    }

    public void setMessageActions(List<MessageAction> messageActions) {
        this.messageActions = messageActions;
    }

    public  Integer getReceiverId(){return  receiverId;}

    public  void  setReceiverId(Integer receiverId){this.receiverId=receiverId;}

    public  String getKeywords(){return  keywords;}

    public  void  setKeywords(String keywords){this.keywords=keywords;}

    public  String getReceiverName(){return  receiverName;}

    public  void  setReceiverName(String receiverName){this.receiverName=receiverName;}

    public  Integer getMessageActionId(){return  messageActionId;}

    public  void  setMessageActionId(Integer messageActionId){this.messageActionId=messageActionId;}

    public List<Integer> getIds() {
        return ids;
    }

    public void setIds(List<Integer> ids) {
        this.ids = ids;
    }

}